SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 45104: Adding inline formatting to the LABEL statement with PROC PRINT renders the XML file unreadable in Excel

DetailsAboutRate It

Adding inline formatting to the LABEL statement with PROC PRINT renders an invalid XML file when generated with the ExcelXP tagset in SAS® 9.1.3. When adding the inline formatting to the LABEL statement, null characters are added to the header and data values, rendering the XML file unreadable in Excel.

There is currently no circumvention for this problem.

The example below replicates the behavior.

ods escapechar='~'; ods listing close; ods tagsets.excelxp file='c:\class.xls' style=sansPrinter; proc print data=sashelp.class label noobs; label height = 'g/cm3' weight = '~S={foreground=red} test'; run; quit; ods _all_ close;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASTru64 UNIX9.1 TS1M3 SP49.2 TS2M3
Solaris for x649.1 TS1M3 SP49.2 TS2M3
OpenVMS Alpha9.1 TS1M3 SP49.2 TS2M3
Linux on Itanium9.1 TS1M3 SP49.2 TS2M3
Linux9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS2M3
HP-UX IPF9.1 TS1M3 SP49.2 TS2M3
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS2M3
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS2M3
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS2M3
Windows Vista for x649.1 TS1M3 SP49.2 TS2M3
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS2M3
z/OS9.1 TS1M3 SP49.2 TS2M3
Windows Vista9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.